<template>
  <div class="m-hcity">
    <dl>
      <dt>热门城市：</dt>
      <dd
        v-for="item in list"
        :key="item.id">{{ item.name==='市辖区'?item.province.replace('市',''):item.name.replace('市','') }}</dd>
    </dl>
  </div>
</template>

<script>
export default {
  data(){
    return {
      list:[]
    }
  },
  async mounted(){
    let res =await this.$axios.get('/geo/hotCity')
    // console.log(res)
    this.list= res.hots || []
    // if(status===200){
    //   this.list=hots
    // }
  }
}
</script>

<style lang="scss">
  @import "assets/css/changeCity/hot.scss";
</style>
